<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="head.jsp" />
</head>
<body>
	<section id="container"> 
	
	<header id="header"> <!--logo start-->
	<div class="brand">
		<a href="<%=path%>/index" class="logo"> <span style="font-size: 18px; text-align: center;" class="zi">车辆检查联动系统</span></a>
	</div>
	<!--logo end-->
	<div class="toggle-navigation toggle-left">
		<button type="button" class="btn btn-default" id="toggle-left"
			data-toggle="tooltip" data-placement="right">
			<i class="fa fa-bars"></i>
		</button>
		<font color="#1abc9c" id="dateTime" style="margin-left: 20px"></font>
	</div>
	<div class="user-nav">
		<ul>
			<li class="dropdown settings"><a class="dropdown-toggle"
				data-toggle="dropdown" href="javascript:void(0);"> ${managerName }<i class="fa fa-angle-down"></i></a>
					<ul class="dropdown-menu animated fadeInDown">
					 		<li>
                            	<a href="#" onclick="openBodyHtml('<%=path%>/resetPasswordInit');$('li').removeClass('active');"><i class="fa fa-pencil"></i> 修改密码 </a>
                            </li>
                            <li>
                            	<a href="<%=path%>/j_spring_security_logout"><i class="fa fa-power-off"></i> 登出系统 </a>
                            </li>
                            <c:if test="${manager.managerType == 1001}">
                            	<li>
                            		<a href="<%=path%>/testTruncateData"><i class="fa fa-power-off"></i> 清空数据 </a>
                            	</li>
                            </c:if>
                        </ul>
			</li>
		</ul>
	</div>
	</header> 
	<aside class="sidebar">
			<div id="leftside-navigation" class="nano">
                <ul class="nano-content">
					<li class="active">
						<a href="#" onclick="openBodyHtml('<%=path%>/statistical')">
							<i class="fa fa-bar-chart"></i>统计
						</a>
					</li>
					<c:if test="${manager.managerType == 1001}">
					<li>
						<a href="#" onclick="openBodyHtml('<%=path%>/deviceInfo')">
							<i class="fa fa-tasks"></i>设备信息
						</a>
					</li>
					<li>
						<a href="#" onclick="openBodyHtml('<%=path%>/blacklistInfo')">
							<i class="fa fa-tasks"></i>黑名单
						</a>
					</li>
					<li>
						<a href="#" onclick="openBodyHtml('<%=path%>/organizationInfo')">
							<i class="fa fa-users"></i>检查站
						</a>
					</li>
					<li>
						<a href="#" onclick="openBodyHtml('<%=path%>/driverInfo')">
							<i class="fa fa-tasks"></i>司机信息
						</a>
					</li>
					</c:if>
					<li>
						<a href="#" onclick="openBodyHtml('<%=path%>/managerInfo')">
							<i class="fa fa-user"></i>管理员
						</a>
					</li>
					<li>
						<a id="personA" href="#" onclick="openBodyHtml('<%=path%>/personInfo')">
							<i class="fa fa-table"></i>人员信息
						</a>
					</li>
					<li>
						<a href="#" id="alertA" onclick="openBodyHtml('<%=path%>/personAlertInfo')">
							<i class="fa fa-table"></i>人员告警信息
						</a>
					</li>
					<li>
						<a href="#" onclick="openBodyHtml('<%=path%>/tripInfo')">
							<i class="fa fa-automobile"></i>历史行程
						</a>
					</li>
					<li>
						<a href="#" onclick="openBodyMap('<%=path%>/mapInfo')">
							<i class="fa fa-map-marker"></i>地图
						</a>
					</li>
				
				</ul>
			</div>	
	</aside> 
	<section class="main-content-wrapper">
		  <section id="main-content">
		  	
		  </section>
	</section> 
	
	</section>
</body>
<script>
$(function() {
	getDateTime();
	setInterval(function(){
		getDateTime();
	},1000);
	openBodyHtml('<%=path%>/statistical');
	$('#leftside-navigation a').on('click',function(){
		$('li').removeClass('active');
		$(this).parent().addClass('active');
	})
});

function getDateTime(){
	var b=document.getElementById("dateTime");
	with(new Date)b.innerHTML=""+toLocaleString();
}

</script>
</html>